package com.lemon.reggie.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class AddEmployeeDTO implements Serializable {

    private static final long serialVersionUID = -2609914376816132885L;

    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空！")
    private String name;

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空！")
    private String username;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空！")
    private String phone;

    @ApiModelProperty(value = "性别")
    @NotBlank(message = "性别不能为空！")
    private String sex;

    @ApiModelProperty(value = "身份证号")
    @NotBlank(message = "身份证号不能为空！")
    private String idNumber;

}
